//
//  ICMGetCarBasicInfoView.h
//  ICrEAM
//
//  Created by FoREVer_SaD on 16/10/26.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"
#import "ICMTitleTextView.h"
@class ICMBasicInfoModel;
@class ICMAppointmentOtherInfoModel;
@class ICMPersonerModel;

@protocol ICMGetCarBasicInfoViewDelegate <NSObject>

@optional

- (void)clickQRCodeBtnWithType:(int)type;

- (void)clickMonitorBtn;

- (void)clickRepairTypeBtn;

- (void)clickCarInfoBtn;

- (void)clickCarOwnerBtn;

- (void)licenseDidEndEdit:(ICMTitleTextFeildView *)sender type:(NSString *)type;


@end

@interface ICMGetCarBasicInfoView : UIView

@property (nonatomic, copy) NSString *BOOKING_ORDER_NO;//预约单号
@property (nonatomic, copy) NSString *RO_NO;//委托书
@property (nonatomic, copy) NSString *RECEPTION_STATUS;//接车单状态
@property (nonatomic, copy) NSString *RECEPTION_NO;//接车单号

@property (nonatomic, assign) NSInteger current_mile;//编辑时带入的行驶里程

//是否更改了车型
@property (nonatomic, assign) BOOL haveChangeCarModel;
@property (nonatomic, assign) BOOL haveChangeVIN;

@property (nonatomic, strong) ICMPersonerModel *personModel;

@property (nonatomic, strong) ICMTitleTextFeildView *vinNumberView;
@property (nonatomic, strong) ICMTitleTextFeildView *selectAreaView;
@property (nonatomic, strong) ICMTitleTextFeildView *plateNumberView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerNameView;


@property (nonatomic, strong) ICMTitleTextFeildView *invoiceDateView;
@property (nonatomic, strong) ICMTitleTextFeildView *currentMileageView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerPhoneNumberView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerTypeView;


@property (nonatomic, strong) ICMTitleTextFeildView *carTypeView;
@property (nonatomic, assign) int remainingFuel;
@property (nonatomic, strong) UILabel *remainingFuelLabel;
@property (nonatomic, strong) UISlider *remainingFuelSlider;
@property (nonatomic, strong) ICMTitleTextFeildView *customerNameView;
@property (nonatomic, strong) ICMTitleTextFeildView *customerPhoneNumberView;


@property (nonatomic, strong) ICMTitleTextFeildView *cleanCarView;
@property (nonatomic, strong) ICMTitleTextFeildView *oldPartsShowView;
@property (nonatomic, strong) ICMTitleTextFeildView *spareWheelCheckView;
@property (nonatomic, strong) ICMTitleTextFeildView *sendCarAddressView;


@property (nonatomic, strong) ICMTitleTextView *repairTypeView;
@property (nonatomic, strong) ICMTitleTextView *requirementDiscribeView;
@property (nonatomic, strong) ICMTitleTextView *furtherCheckView;

@property (nonatomic, weak) id<ICMGetCarBasicInfoViewDelegate> delegate;

- (void)setupBasicInfoViewWithModel:(ICMBasicInfoModel*)basicInfoModel;

- (void)setupBasicInfoViewWithModel:(ICMBasicInfoModel *)basicInfoModel andOtherInfoModel:(ICMAppointmentOtherInfoModel*)otherInfoModel;

+ (instancetype)createICMGetCarBasicInfoViewWithFrame:(CGRect)frame;
@property (nonatomic) BOOL isEditType;
@end
